package StatePattern.example2;

public class Main {
    public static void main(String[] args) {
        ThreadContext tc = new ThreadContext();
        System.out.println(tc);

        tc.start();
        System.out.println(tc);

        tc.getCpu();
        System.out.println(tc);

        tc.suspend();
        System.out.println(tc);

        tc.resume();
        System.out.println(tc);

        tc.getCpu();
        System.out.println(tc);

        tc.stop();
        System.out.println(tc);

        //tc.getCpu();
    }
}
